#!/usr/bin/env python
# -*- coding:utf-8 -*-

def login(key_arg):
    local="iefmdkndjvnkvnkfjdkf"
    if local==key_arg:
        return 1
    else:return 0

def auth(func):
    def inner(*args,**kwargs):
        key=kwargs.pop('token')
        if not login(key):
            return "budui"
        temp=func(*args,**kwargs)
        print "after"
        return temp
    return inner

@auth
def fetch_server():
    server_list=['c1','c2','c3']
    return server_list